package org.pattern.Interceptor;

/**
 * Hello world!
 */
public class InterceptorDemo {
    public static void main(String[] args) {
        final TargetInvocation targetInvocation = new TargetInvocation();
        targetInvocation.addInterceptor(new LogInterceptor());
        targetInvocation.addInterceptor(new AuditInterceptor());
        targetInvocation.setTarget(request -> {
            return new Response();
        });

        targetInvocation.invoke();
    }
}
